// CRC32: 1DF8E1F8 | Matched 2 variants of 1 shaders: Transparent/Double Sided Transparent (Supports Lightmap)
// 
//    Unity headers extracted from Mobile Double Sided Transparent (Supports Lightmap).shader
//    Shader "Transparent/Double Sided Transparent (Supports Lightmap)" {
//      Properties {
//       _MainTex ("Base (RGB) Trans (A)", 2D) = "white" { }
//      }
//      Fallback "Diffuse"
//      SubShader 1/1 {
//        Tags { "QUEUE"="Transparent" "RenderType"="Transparent" }
//        Pass 3/4 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Transparent" "RenderType"="Transparent" }
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha OneMinusSrcAlpha
//          GpuProgramID 136280
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_OFF" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_OFF" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Matrix 4 [_Object2World] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 10 [_MainTex_ST]
//              Vector 7 [_ProjectionParams]
//              Vector 8 [_ScreenParams]
//              Vector 9 [unity_FogParams]
//            }
//          }
//        }
//      }
//    }
// 
// Headers extracted with DarkStarSword's extract_unity_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity_shaders.py

    vs_3_0 // Converted from vs_2_0 with DarkStarSword's shadertool.py
dcl_fog o9 // Inserted by shadertool.py for fog compatibility on upgrade from vs_2_0 to vs_3_0
    def c11, 0.5, 0, 0, 0
    dcl_position v0
    dcl_texcoord v1

dcl_texcoord o0
dcl_texcoord1 o1
dcl_texcoord2 o2
dcl_texcoord3 o3
dcl_texcoord5 o4
dcl_position o5


def c220, 0, 1, 0.0625, 0.5
dcl_2d s0

    mad o0.xy, v1, c10, c10.zwzw
    dp4 o1.x, c4, v0
    dp4 o1.y, c5, v0
    dp4 o1.z, c6, v0
    dp4 r0.y, c1, v0
    mul r1.x, r0.y, c7.x
    mul r1.w, r1.x, c11.x
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0

mov o5, r0 // Relocated from line 65 with shadertool.py

// Automatic vertex shader halo fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -I ../.. --fix-unity-reflection --auto-fix-vertex-halo --add-fog-on-sm3-update --only-autofixed --ignore-register-errors Transparent_Double Sided Transparent (Supports Lightmap)/vp/1DF8E1F8.txt
texldl r31, c220.z, s0
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xz, r0.xyww, c11.x
    mad o2.xy, r1.z, c8.zwzw, r1.xwzw
    dp4 r0.z, c2, v0
    mad o4.x, r0.z, c9.z, c9.w

//     mov o5, r0 // Relocated to line 61 with shadertool.py
mov o5.z, r0 // Inserted by shadertool.py

mov o9, r0.z // Inserted by shadertool.py for fog compatibility on upgrade from vs_2_0 to vs_3_0
    mov o2.zw, r0
    mov o3, c11.y
